/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UserInterface;

import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 *
 * @author subx
 */
public class InformationPanel extends JPanel {

    private JLabel[] labels = null;
    private JCheckBox[] options = null;

    
    public InformationPanel() {
        initComponents();
    }

    public void initComponents() {
        if(labels != null && options != null){
            for(JLabel e : labels)
                this.add(e);

            for(JCheckBox e : options)
                this.add(e);
        }
    }

    /**
     * Get the value of options
     *
     * @return the value of options
     */
    public JCheckBox[] getOptions() {
        return options;
    }

    /**
     * Set the value of options
     *
     * @param options new value of options
     */
    public void setOptions(JCheckBox[] options) {
        this.options = options;
    }

    /**
     * Get the value of options at specified index
     *
     * @param index
     * @return the value of options at specified index
     */
    public JCheckBox getOptions(int index) {
        return this.options[index];
    }

    /**
     * Set the value of options at specified index.
     *
     * @param index
     * @param newOptions new value of options at specified index
     */
    public void setOptions(int index, JCheckBox newOptions) {
        this.options[index] = newOptions;
    }

    /**
     * Get the value of labels
     *
     * @return the value of labels
     */
    public JLabel[] getLabels() {
        return labels;
    }

    /**
     * Set the value of labels
     *
     * @param labels new value of labels
     */
    public void setLabels(JLabel[] labels) {
        this.labels = labels;
    }

    /**
     * Get the value of labels at specified index
     *
     * @param index
     * @return the value of labels at specified index
     */
    public JLabel getLabels(int index) {
        return this.labels[index];
    }

    /**
     * Set the value of labels at specified index.
     *
     * @param index
     * @param newLabels new value of labels at specified index
     */
    public void setLabels(int index, JLabel newLabels) {
        this.labels[index] = newLabels;
    }
    
}
